<script setup lang="ts">
import BgMusic from "./components/BgMusic.vue";
import { getCurrentStudent, getSafeAreaInsets, getUserInfo } from "./utils/common";
import VConsole from "vconsole";
// const vConsole = new VConsole({ theme: "dark" });
const env = import.meta.env.MODE;
/** 打开vConsole */
// const openVClg = () => {
//   vConsole.showSwitch();
// };
/** 初始化 */
function init() {
  // if (env === "test") {
  //   openVClg();
  // }
  console.log('init')
  getUserInfo();
  getSafeAreaInsets();
  getCurrentStudent()
}
init();
</script>

<template>
  <router-view></router-view>
  <BgMusic />
</template>

<style scoped>
.btn-vConsole {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
}
body {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}
</style>
